﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Templates_Home_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" Runat="Server">
    <script type="text/javascript">
        var storeLocator_SelectedIndexChanged = function(sender, args) {
            var item = args.get_item();
            var url = item.get_value();
            if (url.length > 0) {
                document.location = url;
            }
        };
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" Runat="Server">
    <div class="homePage" style="margin:20px 300px 50px 50px">
        <acms:HtmlContentControlDisplay ID="inntroduction" ControlName="Introduction" runat="server" />
        
        <div style="padding:30px 0px 0px 0px;">
            <telerik:RadComboBox ID="storeLocator" Width="400px" AllowCustomText="false" EmptyMessage="Search for store or barista" Skin="Sunset" Filter="Contains" IsCaseSensitive="false" OnClientSelectedIndexChanged="storeLocator_SelectedIndexChanged"  runat="server">
                <Items>
                    <telerik:RadComboBoxItem Text="Search for store or barista" Value="" />
                </Items>
            </telerik:RadComboBox>
        </div>
    </div>
</asp:Content>